package com.lokyiu.tutorial.java.exerisce2;

public class VehicleBehavior {
	private int time;
	public VehicleBehavior(Vehicle vehicle,Road road){
		int time = (int)(Math.sqrt(road.getLength() / (vehicle.getAccelerate() / road.getFriction())));
		this.time=time;
	}
	
	public int getTime() {
		return time;
	}

}
